package com.lh.microservice2.feign;

import com.lh.microservice2.feign.fallback.FeignTestServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lh
 * @Description:
 * @date 2021/3/30 10:20
 */
@FeignClient(value = "recall-project-microservice1", fallback = FeignTestServiceFallBack.class)
public interface FeignTestService {
	@RequestMapping(value = "/feign/feignTest", method = RequestMethod.GET)
	String ribbonTest(@RequestParam(value = "name") String name);
}
